package com.wjh.graduation.util;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created on 2022/2/7.
 *
 * @author Wu Jiahong
 */
@SpringBootTest
public class test {

	@Test
	public void test() {
		Date date = new Date("Sat Jan 01 00:00:00 CST 2022");
		Util util = new Util();
		System.out.println(util.lastDay(date));
	}

	@Test
	public void test1() {
		Date date = new Date("Sat Jan 01 00:00:00 CST 2022");
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
		System.out.println(simpleDateFormat.format(date));
	}
}
